<?php
/**
 * 陈杰  18323491246
 */

namespace App\Models\Api;

use App\Models\BaseModel;
use Illuminate\Support\Facades\Cache;

class ExtendGroupModel extends BaseModel
{
    public $table = 'extend_group';

    public static function get_by_id(int $id)
    {
        $data = Cache::remember('group_id_' . $id, 6000, function () use ($id) {
            $data = self::find($id)->toArray();
            return $data;
        });
        return $data;
    }
}
